#include "TrueText/Config.h"
#include "TrueText/FontEffectShadow.h"
#include "FontEffectShadowImpl.h"

namespace TrueText {

FontEffectShadow::FontEffectShadow()
	: impl(new FontEffectShadowImpl())
{ }

FontEffectShadow::FontEffectShadow(const FontEffectShadow& rhs)
	: impl(new FontEffectShadowImpl(*rhs.impl))
{ }

const FontEffectShadow& FontEffectShadow::operator=(const FontEffectShadow& rhs)
{
	if (&rhs == this)
		return *this;

	impl.reset(new FontEffectShadowImpl(*rhs.impl));

	return *this;
}

FontEffectShadow::~FontEffectShadow()
{
}

const ShadowInfo& FontEffectShadow::GetShadowInfo() const
{
	return impl->GetShadowInfo();
}

void FontEffectShadow::SetShadowInfo(const ShadowInfo& value)
{
	impl->SetShadowInfo(value);
}

bool FontEffectShadow::IsEnabled() const
{
	return impl->IsEnabled();
}

void FontEffectShadow::Enable(bool fEnable)
{
	impl->Enable(fEnable);
}

FontEffectShadowImpl* FontEffectShadow::getImpl() const
{
	return impl.get();
}

}